<script src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="bootbox/bootbox.js"></script>
<script src="lib/plupload-2.1.2/js/plupload.full.min.js"></script>
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <strong>
                    <div ng-show="id">
                        修改学术服务
                    </div>
                    <div ng-hide="id">
                        添加学术服务
                    </div>
                </strong>
            </div>

            <div class="panel-body">
                <form name="uploadForm" class="form-horizontal" role="form" ng-submit="createOrUpdate()">
                    <div class="form-group" ng-show="error_msg">
                        <div class="col-sm-offset-1 col-sm-11">
                            <div class="alert alert-danger" role="alert">{{error_msg}}</div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="province" class="col-sm-2  col-sm-offset-2 control-label">所属省份</label>

                        <div class="col-sm-4 ">
                            <select ng-model="province"
                                    ng-change="provinceChanged(province)"
                                    class="form-control" id="province"
                                    ng-options="item._id as item.name for item in provinces">
                                <option value="">请选择省份</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="hospital" class="col-sm-2  col-sm-offset-2 control-label">所属医院</label>

                        <div class="col-sm-4 ">
                            <select id="hospital"
                                    ng-model="hospital"
                                    class="form-control"
                                    ng-change="hospitalChanged(hospital)"
                                    ng-options="item._id as item.name for item in hospitals">
                                <option value="">请选择医院</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="office" class="col-sm-2  col-sm-offset-2 control-label">所属科室</label>

                        <div class="col-sm-4 ">
                            <select id="office"
                                    ng-model="office"
                                    class="form-control"
                                    ng-change="officeChanged(office)"
                                    ng-options="item._id as item.name for item in offices">
                                <option value="">请选择科室</option>
                            </select>
                        </div>
                    </div>


                    <div class="form-group">
                        <label for="doctor" class="col-sm-4 control-label">主治医生</label>
                        <div class="col-sm-4">
                            <select id="doctor"
                                    ng-model="doctor"
                                    class="form-control"
                                    ng-options="item._id as item.name for item in doctors">
                                <option value="">请选择医生</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">

                        <label for="title" class="col-sm-4 control-label">标书/文章题目</label>
                        <div class="col-sm-4">
                            <input type="text" required="true" class="form-control" id="title" placeholder="" ng-model="title">
                        </div>

                        <div id="percentage" class="col-sm-1">
                        </div>

                        <div id="container_research_title" class="col-sm-3">
                            <a id="browser_research_title" href="javascript:;">[选择文件...]</a>
                        </div>
                    </div>

                    <div class="form-group span6">
                        <label for="name" class="col-sm-2 col-sm-offset-2 control-label">标书类别</label>

                        <div class="col-sm-4">
                            <input type="text" required="true" class="form-control" id="name" placeholder="请输入标书类别"
                                   ng-model="type">
                        </div>
                    </div>

                    <div class="form-group span6">
                        <label for="result" class="col-sm-2 col-sm-offset-2 control-label">结果</label>

                        <div class="col-sm-4">
                            <input type="text" required="true" class="form-control" id="result" placeholder="请输入标书结果"
                                   ng-model="result">
                        </div>
                    </div>

                    <div class="form-group span6">
                        <label for="magazine" class="col-sm-2 col-sm-offset-2 control-label">投稿杂志</label>

                        <div class="col-sm-4">
                            <input type="text" required="true" class="form-control" id="magazine" placeholder="请输入标书类别"
                                   ng-model="magazine">
                        </div>
                    </div>

                    <div class="form-group span6">
                        <label for="m_result" class="col-sm-2 col-sm-offset-2 control-label">结果</label>

                        <div class="col-sm-4">
                            <input type="text" required="true" class="form-control" id="m_result" placeholder="请输入投稿结果"
                                   ng-model="m_result">
                        </div>
                    </div>

                    <div class="form-actions">
                        <button type="submit" class="btn btn-default col-sm-offset-4 col-sm-1">确定</button>
                        <button type="button" class="btn col-sm-1 cancel_btn" ng-click="cancel()">取消</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>